//
//  DYJQDDInfoCell.swift
//  SheYangBigData
//
//  Created by 叁拾叁 on 2021/2/4.
//  Copyright © 2021 叁拾叁. All rights reserved.
//


import UIKit
import YYText

class DYJQDDInfoCell: SYBaseCell {

    var bgView: UIView = {
        let v: UIView = UIView()
        v.backgroundColor = .white
        v.layer.cornerRadius = 5
        v.layer.masksToBounds = true
        return v
    }()
    
    let dingdan: UILabel = {
        let v:UILabel = UILabel()
        v.textColor = UIColor(hex: 0x333333)
        v.font = 18.autoBoldFontSize()
        v.text  = "订单信息"
        return v
    }()
    
    
    
    let youkeT: UILabel = {
        let v:UILabel = UILabel()
        v.textColor = UIColor(hex: 0x999999)
        v.font = 15.autoFontSize()
        v.text = "游客信息"
        return v
    }()
    
    let bianhaoT: UILabel = {
        let v:UILabel = UILabel()
        v.textColor = UIColor(hex: 0x999999)
        v.font = 15.autoFontSize()
        v.text = "订单编号"
        return v
    }()
    let zhifuTimeT: UILabel = {
        let v:UILabel = UILabel()
        v.textColor = UIColor(hex: 0x999999)
        v.font = 15.autoFontSize()
        v.text = "支付时间"
        return v
    }()
    
    let yuyueTimeT: UILabel = {
        let v:UILabel = UILabel()
        v.textColor = UIColor(hex: 0x999999)
        v.font = 15.autoFontSize()
        v.text = "预约时间"
        return v
    }()
    
    let name: UILabel = {
        let v:UILabel = UILabel()
        v.textColor = UIColor(hex: 0x333333)
        v.font = 15.autoFontSize()
        
        v.text = "时小昀"
        return v
    }()
    
    let phone: UILabel = {
        let v:UILabel = UILabel()
        v.textColor = UIColor(hex: 0x333333)
        v.font = 12.autoFontSize()
        v.text = "131 6008 0000"
        return v
    }()
    
    let zhengjian: UILabel = {
        let v:UILabel = UILabel()
        v.textColor = UIColor(hex: 0x333333)
        v.font = 12.autoFontSize()
        v.text = "身份证   3201061199902352435"
        return v
    }()
    
    
    
    let bianhao: UILabel = {
        let v:UILabel = UILabel()
        v.textColor = UIColor(hex: 0x333333)
        v.font = 15.autoFontSize()
        v.text = "2021-01-18  周一"
        return v
    }()
    
    let zhifu: UILabel = {
        let v:UILabel = UILabel()
        v.textColor = UIColor(hex: 0x333333)
        v.font = 15.autoFontSize()
        v.text = "【六合龙池湖门票成人票1张】"
        return v
    }()
    
    let yuyue: UILabel = {
        let v:UILabel = UILabel()
        v.textColor = UIColor(hex: 0x333333)
        v.font = 15.autoFontSize()
        
        v.text = "时小昀"
        return v
    }()
    

    
    
    func configure(_ model: RYDingdanModel) {
        
    }

    override func initViews() {
        
        self.backgroundColor = .clear
        addSubview(bgView)
        bgView.addSubview(dingdan)
        
        bgView.addSubview(name)
        bgView.addSubview(youkeT)
        bgView.addSubview(phone)
        bgView.addSubview(zhengjian)
        
        bgView.addSubview(lineView)
        bgView.addSubview(bianhao)
        bgView.addSubview(zhifu)
        bgView.addSubview(yuyue)
        bgView.addSubview(bianhaoT)
        bgView.addSubview(zhifuTimeT)
        bgView.addSubview(yuyueTimeT)
        
        dingdan.snp.makeConstraints { (make) in
            make.top.equalToSuperview().offset(20.autoWidth())
            make.left.equalToSuperview().offset(10.autoWidth())
            make.height.equalTo(18.autoWidth())
        }
        name.snp.makeConstraints { (make) in
            make.top.equalToSuperview().offset(52.autoWidth())
            make.left.equalToSuperview().offset(95.autoWidth())
            make.height.equalTo(14.autoWidth())
        }
        lineView.snp.makeConstraints { (make) in
            make.top.equalToSuperview().offset(123.autoWidth())
            make.left.equalToSuperview().offset(10.autoWidth())
            make.right.equalToSuperview().offset(-10.autoWidth())
            make.height.equalTo(0.5.autoWidth())
        }
        youkeT.snp.makeConstraints { (make) in
            make.top.equalToSuperview().offset(52.autoWidth())
            make.left.equalToSuperview().offset(10.autoWidth())
            make.height.equalTo(15.autoWidth())
        }
        phone.snp.makeConstraints { (make) in
            make.top.equalToSuperview().offset(75.autoWidth())
            make.left.equalToSuperview().offset(95.autoWidth())
            make.height.equalTo(15.autoWidth())
        }
        zhengjian.snp.makeConstraints { (make) in
            make.top.equalToSuperview().offset(96.autoWidth())
            make.left.equalToSuperview().offset(95.autoWidth())
            make.height.equalTo(15.autoWidth())
        }
        bianhao.snp.makeConstraints { (make) in
            make.top.equalToSuperview().offset(140.autoWidth())
            make.left.equalToSuperview().offset(95.autoWidth())
            make.height.equalTo(15.autoWidth())
        }
        zhifu.snp.makeConstraints { (make) in
            make.top.equalToSuperview().offset(170.autoWidth())
            make.left.equalToSuperview().offset(95.autoWidth())
            make.height.equalTo(15.autoWidth())
        }
        yuyue.snp.makeConstraints { (make) in
            make.top.equalToSuperview().offset(200.autoWidth())
            make.left.equalToSuperview().offset(95.autoWidth())
            make.height.equalTo(15.autoWidth())
            make.bottom.equalToSuperview().offset(-15.autoWidth())
        }
        bianhaoT.snp.makeConstraints { (make) in
            make.top.equalToSuperview().offset(140.autoWidth())
            make.left.equalToSuperview().offset(10.autoWidth())
            make.height.equalTo(15.autoWidth())
        }
        zhifuTimeT.snp.makeConstraints { (make) in
            make.top.equalToSuperview().offset(170.autoWidth())
            make.left.equalToSuperview().offset(10.autoWidth())
            make.height.equalTo(15.autoWidth())
        }
        yuyueTimeT.snp.makeConstraints { (make) in
            make.top.equalToSuperview().offset(200.autoWidth())
            make.left.equalToSuperview().offset(10.autoWidth())
            make.height.equalTo(15.autoWidth())
        }
        
        bgView.snp.makeConstraints { (make) in
            make.top.equalToSuperview()
            make.bottom.equalToSuperview().offset(-10.autoWidth())
            make.left.equalToSuperview()
            make.right.equalToSuperview()
        }
    }
}
